# the default project name is derived from the name of the current directory
PROJECT_NAME ?= $(notdir $(abspath .))

# can be disabled by overriding with an empty string
COVERAGE_BROWSER_BIN ?= $(shell which xdg-open)

TAGS_FILE ?= tags
TAGS_SOURCE_DIRS ?= $(wildcard src)


.PHONY: help-generic
help-generic:
	@echo "Generic targets:"
	@echo "    tags"
	@echo


help: help-generic


.PHONY: tags
tags:
	ctags -f "$(TAGS_FILE)" -R $(TAGS_SOURCE_DIRS)


.PHONY: clean-tags
clean-tags:
	$(RM) $(TAGS_FILE)

clean: clean-tags
